/*
 * @Description:
 * @Date: 2024-07-19 10:11:25
 * @LastEditTime: 2024-07-26 16:07:09
 */
import request from '@/config/axios'

export default {
  async operateNotificationAnnouncement(type, data, params) {
    const methodObj = {
      create: 'post',
      page: 'post',
      update: 'put',
      delete: 'delete'
    }
    return await request[methodObj[type]]({
      url: `/countryside/notice/${type}`,
      data,
      params
    })
  },
  async getOperateNotificationAnnouncement(id) {
    return await request.get({ url: '/countryside/notice/get?id=' + id })
  }
}
